<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Teacher_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-teacher_id" data-rule="required" data-source="club/teacher/index" class="form-control selectpage" name="row[teacher_id]" type="text" value="{$row.teacher_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Category')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[category]', $categoryList, $row['category'], ['class'=>'form-control', 'required'=>''])}
        </div>
    </div>
    <div class="form-group">
	    <label for="c-banner" class="control-label col-xs-12 col-sm-2">首页图片:(长方形)</label>
	    <div class="col-xs-12 col-sm-8">
	        <div class="input-group">
	            <input id="c-banner" data-rule="" class="form-control" size="50" name="row[banner]" type="text" value="{$row.banner}">
	            <div class="input-group-addon no-border no-padding">
	                <span><button type="button" id="faupload-banner" class="btn btn-danger faupload" data-input-id="c-banner" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-banner"><i class="fa fa-upload"></i> 上传</button></span>
	                <span><button type="button" id="fachoose-banner" class="btn btn-primary fachoose" data-input-id="c-banner" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
	            </div>
	            <span class="msg-box n-right" for="c-banner"></span>
	        </div>
	        <ul class="row list-inline faupload-preview" id="p-banner"></ul>
	    </div>
	</div>
	<div class="form-group">
	    <label for="c-photos" class="control-label col-xs-12 col-sm-2">往期合影:(正方形)</label>
	    <div class="col-xs-12 col-sm-8">
	        <div class="input-group">
	            <input id="c-photos" data-rule="" class="form-control" size="50" name="row[photos]" type="text" value="{$row.photos}">
	            <div class="input-group-addon no-border no-padding">
	                <span><button type="button" id="faupload-photos" class="btn btn-danger faupload" data-input-id="c-photos" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-photos"><i class="fa fa-upload"></i> 上传</button></span>
	                <span><button type="button" id="fachoose-photos" class="btn btn-primary fachoose" data-input-id="c-photos" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
	            </div>
	            <span class="msg-box n-right" for="c-photos"></span>
	        </div>
	        <ul class="row list-inline faupload-preview" id="p-photos"></ul>
	    </div>
	</div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Course_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-course_time" class="form-control" name="row[course_time]" type="text" value="{:$row.course_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Course_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-course_num" class="form-control" name="row[course_num]" type="number" value="{$row.course_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('People_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-people_num" class="form-control" name="row[people_num]" type="number" value="{$row.people_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('want_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-want_num" class="form-control" name="row[want_num]" type="number" value="{$row.want_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('ordered_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ordered_num" class="form-control" name="row[ordered_num]" type="number" value="{$row.ordered_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price_display')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price_display" class="form-control" name="row[price_display]" type="text" value="{$row.price_display|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Note')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-note" class="form-control editor" rows="5" name="row[note]" cols="50">{$row.note|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Short Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-short_description" class="form-control " rows="5" name="row[short_description]" cols="50">{$row.short_description|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-description" class="form-control editor" rows="5" name="row[description]" cols="50">{$row.description|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Show In Front')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="showfrontList" item="vo"}
            <label for="row[show_in_front]-{$key}"><input id="row[show_in_front]-{$key}" name="row[show_in_front]" type="radio" value="{$key}" {in name="key" value="$row.show_in_front"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{$row.start_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="{$row.end_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Updated_at')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-updated_at" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[updated_at]" type="text" value="{$row.updated_at}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Created_at')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-created_at" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[created_at]" type="text" value="{$row.created_at}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
